import request from '@/utils/request'

export function save(data) {
  return request({
    url: '/system/case/archive/no',
    method: 'put',
    data: data
  })
}

/**
 * 撤销
 * @param { array } ids
 * @returns
 */
export function revoke(ids) {
  return request({
    url: '/system/case/archive/revoke',
    method: 'post',
    data: { ids }
  })
}

/**
 * 撤销
 * @param { array } ids
 * @returns
 */
export function casesList(id) {
  return request({
    url: `/system/case/archive/${id}/cases`,
    method: 'get',
  })
}